package com.nj.liandi.common.exception;


public enum BizeCodeEnume {

    VALID_EXCEPTION(10001,"参数校验异常"),
    TOO_MANY_REQUEST(10002,"人流量过大,请等会再访问"),
    UNKNOW_EXCEPTION(10000,"未知异常"),
    SMS_CODE_EXCEPTION(10002,"获取验证码频繁,请稍后再试"),
    USER_EXIST_EXCEPTION(15001,"用户已存在"),
    PHONE_EXIST_EXCEPTION(15002,"手机号已存在"),
    NO_STOCK_EXCEPTION(21000,"库存不足"),
    LOGINACCT_PASSWORD_INVALID_EXCEPTION(15003,"账号密码错误"),
    PRODUCT_UP_EXCEPTION(11000,"商品上架异常");

    int code;
    String message;

    private BizeCodeEnume(int code,String message){
        this.code=code;
        this.message=message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
